Mega Code Archive

Categories
1) Android
2) ASP.Net
3) ASP.Net Tutorial
4) C
5) C Tutorial
6) C#
7) C# Book
8) C# by API
9) C# Tutorial
10) C++
11) C++ Tutorial
12) Delphi
13) Flash ActionScript
14) Flex
15) Java
16) Java Book
17) Java by API
18) Java Tutorial
19) JavaScript DHTML
20) JavaScript Reference
21) JavaScript Tutorial
22) MSOfficeExcel 2007 Tutorial
23) MSOfficePowerPoint 2007 Tutorial
24) MSOfficeWord 2007 Tutorial
25) MSSQL
26) MSSQL Tutorial
27) MySQL
28) MySQL Tutorial
29) Oracle PLSQL
30) Oracle PLSQL Tutorial
31) Perl
32) Php
33) PostgreSQL
34) Python
35) Python Tutorial
36) Ruby
37) Silverlight
38) VB.Net
39) VB.Net by API
40) VB.Net Tutorial
41) Visual C++ .NET
42) VisualBasic Script
43) XML
44) XML Tutorial
 
Flash ActionScript
1) Animation
2) Array
3) Class
4) Data Type
5) Development
6) Function
7) Graphics
8) Language
9) Network
10) Regular Expressions
11) Statement
12) String
13) TextField
14) XML
Data Type
1) ActionScript available scopes
2) Add two number values in the middle of a string concatenation statement
3) Adding an int and a float, assigning to a float
4) Adding strings and numbers
5) An example of a for statement that outputs the numbers from 0 to 999
6) Call the numbers toString() method This is the preferred way
7) Casting to a Number
8) Checking for Null Values
9) Class Level (Static) Variables and Methods are accessed by using the class name followed by the object name
10) Combining operators with assignment will use the left-hand side of the expression as the first operand
11) Construct string object from a date type value
12) Contains reusable methods for operations pertaining to int values
13) Convert null to number
14) Convert null to string
15) Convert numeric literals to uint objects and output the string representations in base-16 (hexadecimal) format
16) Convert numeric literals to uint objects and output the string representations in base-2 (binary)
17) Convert undefined to Number
18) Convert undefined to string
19) Converting a string containing only numerical data
20) Converting to a Number with Precision
21) Creates a variable named width, of type int, and assigns it the value 25
22) Creating a Separate Copy of an variable
23) Dealing with Infinite Values
24) Decimal Numbers
25) Display a sequence of square roots
26) Dividing an int and an int, upgraded to float since the result is not a whole number, and the left-hand side doesnt specify a ty
27) Function-Level Variables and Functions
28) Handling Minimum and Maximum Values
29) Hexadecimal literals start with 0x
30) If omitted, the radix is assumed to be 10, unless the string starts with 0x, 0X, or 0
31) If statement ladder
32) If you convert the string values of true and false, they will both convert to the Boolean true value because both string values
33) If you omit the second parameter, ActionScript attempts to parse the number value using the most appropriate base
34) Include the number variable in a string expression This will implicitly convert the number to a String
35) Instance Level Variables and Methods are independent for each instance of the class
36) Instance Method Scope
37) It is a good practice to initialize your variables to null when you dont have any other specific value to assign to them
38) Minimum and Maximum Values for uint and int
39) Not a Number
40) Number and int data types have a toString( ) method available
41) Numbers preceding the value that is converted to a string will be added rather than concatenated
42) Numeric Conversions
43) Numeric value of 0 can be converted to a Boolean false, and any nonzero value will be converted to true
44) Octal is treated as a decimal number, not an octal number
45) Octal literals start with 0
46) Once a variable has been declared, you can assign a value to it using a simple assignment statement with an equals sign
47) Overriding Variables
48) Parse number values from strings with bases other than 10 using the parseInt() function
49) Parse the numbers from the string base-10
50) Parse the numbers from the string base-16 (hexadecimal)
51) Parse the numbers from the string in base-2 (binary)
52) ParseFloat()
53) ParseInt()
54) Perform operations using variables
55) Read and write to a variable
56) Static Method Scope
57) The default value for an unassigned variable of type Number is NaN
58) The int type is perfect for counters, and is frequently found in for loops
59) The undefined value represents the absence of data for variables, parameters, and return values without a specified type annotat
60) To check whether a value is a valid number, use isNaN( )
61) To declare a variable using strong typing
62) To declare the data type of a variable, use the colon operator right after the name of the variable
63) ToExponential()
64) ToFixed()
65) ToPrecision()
66) Trying to cast any other value will result in a nasty NaN (Not a Number) value being assigned instead
67) Use int() method to convert boolean value to integer
68) Use int() method to convert float number to integer
69) Use int() to convert string to integer
70) Use Number type variable in for loop
71) Use Number() to convert string to a float number
72) Use String() to convert integer to string
73) Use the this keyword when referring to an instance variable with the same name as a function variable
74) Using Access Controls
75) Using Untyped Variables with the Wildcard () Data Type
76) When the number is treated base-10, conversion stops when a non-numeric character is encountered
77) Working with Number Instances
78) You can also declare the variable and assign a value, or initialize the variable, all on one line
79) You can also use exponential notation to declare numbers
80) You can declare several variables on a single line